//
//  HomeShopCartHelper.h
//  FD
//
//  Created by xiaofang wang on 2018/11/21.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//
//  购物车工具类

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HomeShopCartHelper : NSObject
/**请求购物车数据 并计算总价*/

/**
 1.先请求购物车数据 然后计算总价 到处都要用, 封装成工具类

 @param complection 将异步计算好的 总价 通过block进行回调
 */
+ (void)shopcartHelperTotalPriceBlock:(void (^)(CGFloat totalPrice))complection;


/**
 2.统计购物车数量, 用于首页数据显示

 @param complection 成功的回调
 */
+ (void)shopcartHelperShopcartListBlock:(void(^)(NSInteger count))complection;

/**
 3.获取运费

 @param shopAddressId 用户收货地址编号
 @param complection 完成的回调
 */
+ (void)shopcartHelperFreightWithUserShippingAddressId:(NSNumber *)shopAddressId Block:(void(^)(CGFloat freight))complection;



/**2019-2-16 用于判断购物车是否为空*/
+ (void)shopcartHelperCarListIsEmptyBlock:(void(^)(BOOL isHaveData))emptyBlock;
@end

NS_ASSUME_NONNULL_END

